package com.study.dynamic.service.impl;

import com.study.dynamic.pojo.User;
import com.study.dynamic.repository.UserRepository;
import com.study.dynamic.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Mayjean
 * @Date2020/9/10
 */
@Slf4j
@Service
public class UserServiceService implements UserService {

    @Autowired
    private UserRepository userRepository;

    @Override
    public User getByUserId(String useId) {
        return userRepository.getByUserId(useId).get();
    }
}